package ooday01;

public class Student {
    String name;
    int age;
    String className;
    String stuid;
    Student(){
    }
    Student(String name,int age){
        this.name=name;
        this.age=age;
    }
    Student(String name,int age,String className,String stuid){
        this.name=name;
        this.age=age;
        this.className=className;
        this.stuid=stuid;
    }
    void study(){
        System.out.println(this.name+"学习");
        }
        void  sayHi() {
            System.out.println("大家好我叫" +this. name + "今年" + this.age + "学号" + this.stuid + "班名" + this.className);
        }
            void playwith(String anotherName){
                System.out.println(this.name+"和"+anotherName+"一起玩");
            }
    }

